home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_windowmaker.idb / usr / freeware / share / WindowMaker / wmmacros.z / wmmacros
Encoding:
Text File  |  1999-07-16  |  1.6 KB  |  74 lines

  1. /*
  2.  * Some generic macros for WindowMaker configuration files
  3.  * 
  4.  */
  5.  
  6. #ifndef WMMACROS_
  7. #define WMMACROS_
  8.  
  9. #define HAVE_XLESS
  10.  
  11. /*
  12.  * WS_BACK - sets the root background texture to VAL
  13.  */
  14. #define WS_BACK EXEC wdwrite WindowMaker WorkspaceBack 
  15.  
  16. /*
  17.  * CLEARROOT - set the root background to nothing
  18.  */
  19. #define CLEARROOT xsetroot
  20.  
  21.  
  22. /*
  23.  * SETSTYLE FILE - loads a style file 
  24.  */
  25. #define SETSTYLE EXEC cd $HOME/GNUstep/Library/WindowMaker/Styles; setstyle 
  26.  
  27.  
  28. /*
  29.  * 
  30.  * MANUAL_SEARCH(ITEM) - search manual page for ITEM
  31.  * 
  32.  * You might need to change this according to what's the exit status of your 
  33.  * man(1). This is for the one that comes with Linux (RedHat)
  34.  */
  35. #ifdef HAVE_XLESS
  36. #define MANUAL_SEARCH(ITEM)          \
  37.         if ( man ITEM > /dev/null ); then \
  38.         man ITEM | xless;\
  39.     else \
  40.                 xmessage -center -title "Manual Browser" \
  41.                         Sorry, but there is no manual page \
  42.                         entry for ITEM...;\
  43.         fi
  44. #else
  45. #define MANUAL_SEARCH(ITEM)          \
  46.         if ( man ITEM > /dev/null ); then \
  47.         xterm -e man ITEM; \
  48.     else \
  49.                 xmessage -center -title "Manual Browser" \
  50.                         Sorry, but there is no manual page \
  51.                         entry for ITEM...;\
  52.         fi
  53. #endif
  54.  
  55.  
  56. /*
  57.  * Paths to system configuration directories
  58.  */
  59. #define THEMES_DIR        #wmdatadir#/Themes
  60. #define STYLES_DIR        #wmdatadir#/Styles
  61. #define ICON_SETS_DIR        #wmdatadir#/IconSets
  62. #define SOUND_SETS_DIR        #wmdatadir#/SoundSets
  63. #define BACKGROUNDS_DIR        #wmdatadir#/Backgrounds
  64.  
  65.  
  66. #define StaticGray        0
  67. #define GrayScale        1
  68. #define StaticColor        2
  69. #define PseudoColor        3
  70. #define TrueColor        4
  71. #define DirectColor        5
  72.  
  73. #endif
  74.